import request from "@/utils/request";
// const token='QKSwR3bdjNHxd0pBBP3rNAT3wlqhlG7P'

//发送邮箱验证码
export const getEmilCode = (address) =>{
    return request.get('/user/check',{
      params:{address}
    })
}
// 把数据传到数据库内,注册需要
export const uploadInformation = (inputcode,username,userpassword) =>{
  return request.post(`/user/register?inputcode=${inputcode}`,{

    // params:{inputcode},
    userUsername:username,
    userPassword:userpassword
  }
  
  )
}


//邮箱+密码登录
export const passwordLogin = (account, password) => {
    return request.get('/user/login', {
      params:{
        username:account,
        password:password
      }
    })
  }


  